package com.fusetech.os.core.exception;

/**
 * authenic例外
 * 认证异常
 *
 * @author Liuwq
 * @date 2023/06/25
 */
public class AuthenicException extends Exception{

    private Object data;
    private int code=401;

    public AuthenicException(){ }
    public AuthenicException(String message){
        super(message);
    }
    public AuthenicException(Object data, String message){
        super(message);
        this.data=data;
    }

    public Object getData(){
        return this.data;
    }
    public int getCode(){return code;}

}